package caj.springboot.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * @description: id基类
 * @author: CAJ
 * @time: 2023/8/27 23:11
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class BaseModel {

    /**
     * 雪花算法，针对Long类型，如果需要String类型，可以用uuid
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

}
